package org.bbs.demo.user.dao;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.bbs.demo.user.dto.UserInfoDto;

import java.sql.Date;

@Mapper
public interface UserInfoDao {
    @Select("select user_id, u_name, birth, sex, signature, mail, head, school, major, phone, register_date " +
            "from bbsusers where user_id = #{userId}")
    public UserInfoDto findUserInfo(@Param("userId") String userId);
}